Creating a Set
Description
To create a new set in the Model Tree:
Select the position in a Declaration Section where the new set should be inserted
From the Edit menu select Insert – Set
Enter a name for the new set (if you are creating an indexed set, you can type these indices as well)
Press
<Enter>
to create the new set (or press<Esc
> to abort the operation)
The newly created set is now ready for use, but you probably want to specify some additional attributes (for example the indices in the set). To modify the attributes of the newly created set:
Press
<Enter>
or double click on the set node.
The most commonly used attributes of a set identifier are discussed below.
INDEX DOMAIN
: TheINDEX DOMAIN
attribute should be specified in order to declare indexed sets. However, in most models scalar, simple (or compound) sets suffice to formulate your model. Thewizard will display the Set Dependency Tree of your model and allows you to select one or more indices.
SUBSET OF
: TheSUBSET OF
attribute should be specified in order to declare a subset. Thewizard will display the Set Dependency Tree of your model and allows you to select one or more sets.
INDEX
: TheINDEX
attribute is the most natural place to declare indices in the current set. Thewizard allows you to declare a new index, delete or rename an existing index or move an index to another set. When declaring an index this way, the index is bound to the corresponding set. To declare an index that is not bound, you should explicitly declare an index identifier.
PARAMETER
: ThePARAMETER
attribute is like theINDEX
attribute except that it allows you to declare scalar element parameters (instead of indices) in the current set. Another common way to achieve the same is to explicitly declare an element parameter.DEFINITION
: TheDEFINITION
attribute can (and should) be used to specify the definition of an identifier by means of a global relationship. AIMMS stores the result of a definition and recomputes it only when necessary.
How to …
Learn more about